guoyuji
2025-01-08 3c1b9fb8df75485b832a54cfd5aa8cb4997ed4a1
app相关接口
7个文件已修改
81 ■■■■ 已修改文件
north-glass-erp/northglass-erp/src/components/pp/TagStyleDesigner.vue 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
north-glass-erp/northglass-erp/src/views/pp/processCard/PrintLabel.vue 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
north-glass-erp/src/main/java/com/example/erp/controller/userInfo/UserInfoController.java 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
north-glass-erp/src/main/java/com/example/erp/mapper/userInfo/UserMapper.java 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
north-glass-erp/src/main/java/com/example/erp/service/sd/OrderService.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
north-glass-erp/src/main/java/com/example/erp/service/userInfo/UserService.java 27 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
north-glass-erp/src/main/resources/mapper/userInfo/User.xml 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
north-glass-erp/northglass-erp/src/components/pp/TagStyleDesigner.vue
@@ -194,6 +194,18 @@
    }
  },
  {
    tid: 'icon', title: '商标', data: '', type: 'text',
    options: {
      field: 'icon',
      testData: '',
      width:270,
      height: 16,
      fontSize: 11.25,
      textAlign: "left",
      textContentVerticalAlign: "middle"
    }
  },
  {
    tid: 'orderType', title: '订单类型', data: '', type: 'text',
    options: {
      field: 'orderType',
@@ -852,7 +864,7 @@
}
const changeTag = () => {
  const json = JSON.parse(tag.value.value)
  //json.panels[0].printElements[0].options.fields.push({text: '序号尺寸', field: 'numberSize'})
  //json.panels[0].printElements[0].options.fields.push({text: '商标', field: 'icon'})
  hiprintTemplate.value.setPaper(json.panels[0].width, json.panels[0].height)
  hiprintTemplate.value.update(json)
north-glass-erp/northglass-erp/src/views/pp/processCard/PrintLabel.vue
@@ -192,12 +192,15 @@
      <div class="row5">
        <span style="white-space: pre-wrap;font-size: 6pt">{{ item.building_number?item.building_number.replace(/\r|\n|\s/g,''):'' }}</span>
        <span v-if="item.bend_radius!=null">R={{item.bend_radius}}</span>
      </div>
      <div class="row6">
        <span>{{item.glass_child}}</span>&nbsp;
        <br>
        <span v-if="company.showDeliveryCreator" >{{item.processing_note}}</span>
        <span v-else style="font-size: 6pt">{{item.processing_note}}</span>
      </div>
      <div class="row6">
        <span>{{item.glass_child}}</span>&nbsp;
      </div>
      <div class="row5">
        <span>{{item.project}}</span>&nbsp;
      </div>
@@ -275,7 +278,7 @@
#entirety{
  text-align: center;
  width: 180px;
  height: 87px;
  height: 90px;
  margin-bottom: 10px;
  margin-right: 5px;
  overflow: hidden;
@@ -322,7 +325,7 @@
.row5 {
  margin-top: 5px;
  height: 15px;
  height: 18px;
  font-weight: bold;
  font-size: 6pt;
}
north-glass-erp/src/main/java/com/example/erp/controller/userInfo/UserInfoController.java
@@ -10,6 +10,8 @@
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
import java.util.Map;
@RestController
@Api(value="用户controller",tags={"用户操作接口"})
@RequestMapping("/userInfo")
@@ -62,6 +64,12 @@
        return Result.seccess(userService.findAll());
    }
    @ApiOperation("app查询报工班组列表")
    @PostMapping("findByAddress")
    public Result findByAddress(@RequestBody Map<String,String> userName){
        return Result.seccess(userService.findByAddress(userName));
    }
    @ApiOperation("查询所有工序")
    @SaCheckPermission("userList.search")
    @PostMapping("selectProcess")
north-glass-erp/src/main/java/com/example/erp/mapper/userInfo/UserMapper.java
@@ -2,7 +2,6 @@
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.erp.controller.dto.UserDTO;
import com.example.erp.entity.userInfo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@@ -38,4 +37,6 @@
    Boolean updateUserNameById(Integer id,String userName);
    Boolean updateProcessMp(Integer id, String process);
    List<User> findByAddress(String userName);
}
north-glass-erp/src/main/java/com/example/erp/service/sd/OrderService.java
@@ -165,7 +165,7 @@
    private String getOrderId(String dateType){
        String orderId = null;
        if(dateType.equals("day")){
        if(dateType==null || dateType.equals("day")){
            Integer maxOrderId = orderMapper.selectMaxOrderId();
            //查询订单id,并且自增
            String formattedNumber = String.format("%02d", maxOrderId+1);
north-glass-erp/src/main/java/com/example/erp/service/userInfo/UserService.java
@@ -5,24 +5,17 @@
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.erp.controller.dto.UserDTO;
import com.example.erp.entity.userInfo.PermissionBasic;
import com.example.erp.entity.userInfo.Role;
import com.example.erp.entity.userInfo.SysError;
import com.example.erp.entity.userInfo.User;
import com.example.erp.mapper.pp.ProductionSchedulingMapper;
import com.example.erp.mapper.userInfo.*;
import com.example.erp.tools.TokenTools;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.transaction.interceptor.TransactionAspectSupport;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.*;
@Service
@DS("user_info")
@@ -196,5 +189,23 @@
    public Boolean updateProcessSv(Integer id, String process) {
        return userMapper.updateProcessMp(id,process);
    }
    public Object findByAddress(Map<String,String> userName) {
        if(Objects.equals(userName.get("userName"), "")){
            userName.put("userName", null) ;
        }
        List<User> users = userMapper.findByAddress(userName.get("userName"));
        List<Map<String,Object>> userList = new ArrayList<>();
        users.forEach(user -> {
            Map<String,Object> userMap = new HashMap<>();
            userMap.put("value", user.getLoginName());
            userMap.put("text", user.getUserName());
            userList.add(userMap);
        });
        Map<String,List<Object>> map = new HashMap<>();
        map.put("users", Collections.singletonList(userList));
        return map;
    }
}
north-glass-erp/src/main/resources/mapper/userInfo/User.xml
@@ -29,6 +29,20 @@
        on b.role_id = c.id
        where state =1 and a.id != 1
    </select>
    <select id="findByAddress" resultMap="findAllMap">
        SELECT a.*,
               b.role_id,
               c.role
        FROM erp_user_info.user as a
                 left join user_role as b
                           on a.id = b.user_id
                 left join role as c
                           on b.role_id = c.id
        where state =1 and a.id != 1 and address is not null and address !=''
        <if test="userName != null and userName != '' and userName != 'null'">
            and user_name like concat('%',#{userName},'%')
        </if>
    </select>
    <select id="findOne" >
        SELECT *