正在显示
9 个修改的文件
包含
102 行增加
和
3 行删除
| @@ -20,4 +20,39 @@ | @@ -20,4 +20,39 @@ | ||
| 20 | NOW())>= 0 | 20 | NOW())>= 0 |
| 21 | AND STATUS = '生产中' | 21 | AND STATUS = '生产中' |
| 22 | </select> | 22 | </select> |
| 23 | + <select id="selectAll" resultType="org.jeecg.modules.erp.order_form.entity.TblOrderForm"> | ||
| 24 | + SELECT | ||
| 25 | + a.id,a.create_by,a.create_time,a.update_by,a.update_time,a.sys_org_code,a.order_id,a.order_company, | ||
| 26 | + a.work_order,a.product_name,b.product_type_name as product_type,a.order_date,a.designer, | ||
| 27 | + a.dispatch_date,a.delivery_date,a.quantity,a.total_working_hours,a.dispatched_working_hours,a.STATUS, | ||
| 28 | + a.finish_date,a.dispatch_status,a.product_design_status,a.verify_status,a.verify_result,a.delivery_date1,a.pics,a.pics2 | ||
| 29 | + FROM | ||
| 30 | + tbl_order_form a | ||
| 31 | + LEFT JOIN tbl_product_type b on a.product_type = b.product_type_id | ||
| 32 | + </select> | ||
| 33 | + <select id="getCountByType" parameterType="java.lang.String" resultType="java.lang.Integer"> | ||
| 34 | + SELECT | ||
| 35 | + count(product_type) | ||
| 36 | + FROM | ||
| 37 | + tbl_order_form | ||
| 38 | + WHERE | ||
| 39 | + order_id like CONCAT( #{productType}, '%') | ||
| 40 | + </select> | ||
| 41 | + <select id="selectOneById" resultType="org.jeecg.modules.erp.order_form.entity.TblOrderForm"> | ||
| 42 | + SELECT | ||
| 43 | + a.id,a.create_by,a.create_time,a.update_by,a.update_time,a.sys_org_code,a.order_id,a.order_company, | ||
| 44 | + a.work_order,a.product_name,b.product_type_name as product_type,a.order_date,a.designer, | ||
| 45 | + a.dispatch_date,a.delivery_date,a.quantity,a.total_working_hours,a.dispatched_working_hours,a.STATUS, | ||
| 46 | + a.finish_date,a.dispatch_status,a.product_design_status,a.verify_status,a.verify_result,a.delivery_date1,a.pics,a.pics2 | ||
| 47 | + FROM | ||
| 48 | + tbl_order_form a | ||
| 49 | + LEFT JOIN tbl_product_type b on a.product_type = b.product_type_id where a.id =#{id} | ||
| 50 | + </select> | ||
| 51 | + <update id="updateDesignerByOrderId" parameterType="org.jeecg.modules.erp.order_form.entity.TblOrderForm"> | ||
| 52 | + update tbl_order_form set designer = #{designer},assign_design_status = #{assignDesignStatus},dispatch_date=#{dispatchDate} where order_id =#{orderId} | ||
| 53 | + </update> | ||
| 54 | + | ||
| 55 | + <update id="updateProductDesignStatusByOrderId" parameterType="org.jeecg.modules.erp.order_form.entity.TblOrderForm"> | ||
| 56 | + update tbl_order_form set product_design_status = #{productDesignStatus} where order_id =#{orderId} | ||
| 57 | + </update> | ||
| 23 | </mapper> | 58 | </mapper> |
| @@ -31,4 +31,12 @@ public interface ITblOrderFormService extends IService<TblOrderForm> { | @@ -31,4 +31,12 @@ public interface ITblOrderFormService extends IService<TblOrderForm> { | ||
| 31 | 31 | ||
| 32 | 32 | ||
| 33 | List<TblOrderForm> pageTblOrderFormDate(Integer integer); | 33 | List<TblOrderForm> pageTblOrderFormDate(Integer integer); |
| 34 | + | ||
| 35 | + Integer getCountByType(String productType); | ||
| 36 | + | ||
| 37 | + TblOrderForm selectOneById(String id); | ||
| 38 | + | ||
| 39 | + Integer updateDesignerByOrderId(TblOrderForm tblOrderForm); | ||
| 40 | + Integer updateProductDesignStatusByOrderId(TblOrderForm tblOrderForm); | ||
| 41 | + | ||
| 34 | } | 42 | } |
| @@ -48,4 +48,24 @@ public class TblOrderFormServiceImpl extends ServiceImpl<TblOrderFormMapper, Tbl | @@ -48,4 +48,24 @@ public class TblOrderFormServiceImpl extends ServiceImpl<TblOrderFormMapper, Tbl | ||
| 48 | return tblOrderFormMapper.pageTblOrderFormDate(integer); | 48 | return tblOrderFormMapper.pageTblOrderFormDate(integer); |
| 49 | } | 49 | } |
| 50 | 50 | ||
| 51 | + @Override | ||
| 52 | + public Integer getCountByType(String productType) { | ||
| 53 | + return tblOrderFormMapper.getCountByType(productType); | ||
| 54 | + } | ||
| 55 | + | ||
| 56 | + @Override | ||
| 57 | + public TblOrderForm selectOneById(String id) { | ||
| 58 | + return tblOrderFormMapper.selectOneById(id); | ||
| 59 | + } | ||
| 60 | + | ||
| 61 | + @Override | ||
| 62 | + public Integer updateDesignerByOrderId(TblOrderForm tblOrderForm) { | ||
| 63 | + return tblOrderFormMapper.updateDesignerByOrderId(tblOrderForm); | ||
| 64 | + } | ||
| 65 | + | ||
| 66 | + @Override | ||
| 67 | + public Integer updateProductDesignStatusByOrderId(TblOrderForm tblOrderForm) { | ||
| 68 | + return tblOrderFormMapper.updateProductDesignStatusByOrderId(tblOrderForm); | ||
| 69 | + } | ||
| 70 | + | ||
| 51 | } | 71 | } |
| @@ -7,8 +7,10 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page; | @@ -7,8 +7,10 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page; | ||
| 7 | import io.swagger.annotations.Api; | 7 | import io.swagger.annotations.Api; |
| 8 | import io.swagger.annotations.ApiOperation; | 8 | import io.swagger.annotations.ApiOperation; |
| 9 | import lombok.extern.slf4j.Slf4j; | 9 | import lombok.extern.slf4j.Slf4j; |
| 10 | +import org.apache.poi.ss.formula.functions.T; | ||
| 10 | import org.jeecg.common.api.vo.Result; | 11 | import org.jeecg.common.api.vo.Result; |
| 11 | import org.jeecg.common.aspect.annotation.AutoLog; | 12 | import org.jeecg.common.aspect.annotation.AutoLog; |
| 13 | +import org.jeecg.common.constant.CommonConstant; | ||
| 12 | import org.jeecg.common.system.query.QueryGenerator; | 14 | import org.jeecg.common.system.query.QueryGenerator; |
| 13 | import org.jeecg.modules.erp.salary.entity.TblSalaryBase; | 15 | import org.jeecg.modules.erp.salary.entity.TblSalaryBase; |
| 14 | import org.jeecg.modules.erp.salary.service.TblSalaryBaseService; | 16 | import org.jeecg.modules.erp.salary.service.TblSalaryBaseService; |
| @@ -17,7 +19,7 @@ import org.springframework.beans.factory.annotation.Autowired; | @@ -17,7 +19,7 @@ import org.springframework.beans.factory.annotation.Autowired; | ||
| 17 | import org.springframework.web.bind.annotation.*; | 19 | import org.springframework.web.bind.annotation.*; |
| 18 | 20 | ||
| 19 | import javax.servlet.http.HttpServletRequest; | 21 | import javax.servlet.http.HttpServletRequest; |
| 20 | -import java.util.Arrays; | 22 | +import java.util.*; |
| 21 | 23 | ||
| 22 | /** | 24 | /** |
| 23 | * @Description: tbl_salary_base | 25 | * @Description: tbl_salary_base |
| @@ -56,6 +58,13 @@ public class TblSalaryBaseController { | @@ -56,6 +58,13 @@ public class TblSalaryBaseController { | ||
| 56 | return Result.OK(pageList); | 58 | return Result.OK(pageList); |
| 57 | } | 59 | } |
| 58 | 60 | ||
| 61 | + //人员下拉 | ||
| 62 | + @GetMapping(value = "/listSalary") | ||
| 63 | + public Result<List<Map<String,String>>> listSalary(){ | ||
| 64 | + List<Map<String,String>> list = tblSalaryBaseService.selectUserAll(); | ||
| 65 | + return Result.ok(list); | ||
| 66 | + } | ||
| 67 | + | ||
| 59 | @ApiOperation(value = "tbl_salary_base-手机号验证") | 68 | @ApiOperation(value = "tbl_salary_base-手机号验证") |
| 60 | @GetMapping(value = "/listphone") | 69 | @GetMapping(value = "/listphone") |
| 61 | public Result<?> listphone(@RequestParam(name = "phone", required = true) String phone){ | 70 | public Result<?> listphone(@RequestParam(name = "phone", required = true) String phone){ |
| @@ -3,6 +3,9 @@ package org.jeecg.modules.erp.salary.mapper; | @@ -3,6 +3,9 @@ package org.jeecg.modules.erp.salary.mapper; | ||
| 3 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | 3 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| 4 | import org.jeecg.modules.erp.salary.entity.TblSalaryBase; | 4 | import org.jeecg.modules.erp.salary.entity.TblSalaryBase; |
| 5 | 5 | ||
| 6 | +import java.util.List; | ||
| 7 | +import java.util.Map; | ||
| 8 | + | ||
| 6 | 9 | ||
| 7 | /** | 10 | /** |
| 8 | * @author Administrator | 11 | * @author Administrator |
| @@ -12,6 +15,7 @@ import org.jeecg.modules.erp.salary.entity.TblSalaryBase; | @@ -12,6 +15,7 @@ import org.jeecg.modules.erp.salary.entity.TblSalaryBase; | ||
| 12 | */ | 15 | */ |
| 13 | public interface TblSalaryBaseMapper extends BaseMapper<TblSalaryBase> { | 16 | public interface TblSalaryBaseMapper extends BaseMapper<TblSalaryBase> { |
| 14 | 17 | ||
| 18 | + List<Map<String,String>> selectUserAll(); | ||
| 15 | } | 19 | } |
| 16 | 20 | ||
| 17 | 21 |
| @@ -29,4 +29,7 @@ | @@ -29,4 +29,7 @@ | ||
| 29 | social_person,notes,create_by, | 29 | social_person,notes,create_by, |
| 30 | create_time,update_by,update_time | 30 | create_time,update_by,update_time |
| 31 | </sql> | 31 | </sql> |
| 32 | + <select id="selectUserAll" resultType="java.util.Map"> | ||
| 33 | + SELECT a.job_id jobId,CONCAT(a.user_name,'(',b.job_title,')') as userName from tbl_salary_base a left join tbl_salary_suanfa b on a.job_title = b.job_id | ||
| 34 | + </select> | ||
| 32 | </mapper> | 35 | </mapper> |
| @@ -3,6 +3,9 @@ package org.jeecg.modules.erp.salary.service; | @@ -3,6 +3,9 @@ package org.jeecg.modules.erp.salary.service; | ||
| 3 | import com.baomidou.mybatisplus.extension.service.IService; | 3 | import com.baomidou.mybatisplus.extension.service.IService; |
| 4 | import org.jeecg.modules.erp.salary.entity.TblSalaryBase; | 4 | import org.jeecg.modules.erp.salary.entity.TblSalaryBase; |
| 5 | 5 | ||
| 6 | +import java.util.List; | ||
| 7 | +import java.util.Map; | ||
| 8 | + | ||
| 6 | 9 | ||
| 7 | /** | 10 | /** |
| 8 | * @author Administrator | 11 | * @author Administrator |
| @@ -11,4 +14,5 @@ import org.jeecg.modules.erp.salary.entity.TblSalaryBase; | @@ -11,4 +14,5 @@ import org.jeecg.modules.erp.salary.entity.TblSalaryBase; | ||
| 11 | */ | 14 | */ |
| 12 | public interface TblSalaryBaseService extends IService<TblSalaryBase> { | 15 | public interface TblSalaryBaseService extends IService<TblSalaryBase> { |
| 13 | 16 | ||
| 17 | + List<Map<String,String>> selectUserAll(); | ||
| 14 | } | 18 | } |
jeecg-boot-erp/src/main/java/org/jeecg/modules/erp/salary/service/impl/TblSalaryBaseServiceImpl.java
| @@ -6,8 +6,12 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | @@ -6,8 +6,12 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | ||
| 6 | import org.jeecg.modules.erp.salary.entity.TblSalaryBase; | 6 | import org.jeecg.modules.erp.salary.entity.TblSalaryBase; |
| 7 | import org.jeecg.modules.erp.salary.mapper.TblSalaryBaseMapper; | 7 | import org.jeecg.modules.erp.salary.mapper.TblSalaryBaseMapper; |
| 8 | import org.jeecg.modules.erp.salary.service.TblSalaryBaseService; | 8 | import org.jeecg.modules.erp.salary.service.TblSalaryBaseService; |
| 9 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 9 | import org.springframework.stereotype.Service; | 10 | import org.springframework.stereotype.Service; |
| 10 | 11 | ||
| 12 | +import java.util.List; | ||
| 13 | +import java.util.Map; | ||
| 14 | + | ||
| 11 | /** | 15 | /** |
| 12 | * @author Administrator | 16 | * @author Administrator |
| 13 | * @description 针对表【tbl_salary_base】的数据库操作Service实现 | 17 | * @description 针对表【tbl_salary_base】的数据库操作Service实现 |
| @@ -17,6 +21,13 @@ import org.springframework.stereotype.Service; | @@ -17,6 +21,13 @@ import org.springframework.stereotype.Service; | ||
| 17 | public class TblSalaryBaseServiceImpl extends ServiceImpl<TblSalaryBaseMapper, TblSalaryBase> | 21 | public class TblSalaryBaseServiceImpl extends ServiceImpl<TblSalaryBaseMapper, TblSalaryBase> |
| 18 | implements TblSalaryBaseService { | 22 | implements TblSalaryBaseService { |
| 19 | 23 | ||
| 24 | + @Autowired | ||
| 25 | + private TblSalaryBaseMapper tblSalaryBaseMapper; | ||
| 26 | + | ||
| 27 | + @Override | ||
| 28 | + public List<Map<String, String>> selectUserAll() { | ||
| 29 | + return tblSalaryBaseMapper.selectUserAll(); | ||
| 30 | + } | ||
| 20 | } | 31 | } |
| 21 | 32 | ||
| 22 | 33 |
| @@ -138,10 +138,15 @@ public class CommonController { | @@ -138,10 +138,15 @@ public class CommonController { | ||
| 138 | // 获取文件名 | 138 | // 获取文件名 |
| 139 | String orgName = mf.getOriginalFilename(); | 139 | String orgName = mf.getOriginalFilename(); |
| 140 | orgName = CommonUtils.getFileName(orgName); | 140 | orgName = CommonUtils.getFileName(orgName); |
| 141 | +// if(orgName.indexOf(".")!=-1){ | ||
| 142 | +// fileName = orgName.substring(0, orgName.lastIndexOf(".")) + "_" + System.currentTimeMillis() + orgName.substring(orgName.lastIndexOf(".")); | ||
| 143 | +// }else{ | ||
| 144 | +// fileName = orgName+ "_" + System.currentTimeMillis(); | ||
| 145 | +// } | ||
| 141 | if(orgName.indexOf(".")!=-1){ | 146 | if(orgName.indexOf(".")!=-1){ |
| 142 | - fileName = orgName.substring(0, orgName.lastIndexOf(".")) + "_" + System.currentTimeMillis() + orgName.substring(orgName.lastIndexOf(".")); | 147 | + fileName = System.currentTimeMillis() + orgName.substring(orgName.lastIndexOf(".")); |
| 143 | }else{ | 148 | }else{ |
| 144 | - fileName = orgName+ "_" + System.currentTimeMillis(); | 149 | + fileName = System.currentTimeMillis()+""; |
| 145 | } | 150 | } |
| 146 | String savePath = file.getPath() + File.separator + fileName; | 151 | String savePath = file.getPath() + File.separator + fileName; |
| 147 | File savefile = new File(savePath); | 152 | File savefile = new File(savePath); |
-
请 注册 或 登录 后发表评论