| | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.yuanchu.mom.pojo.Opinion; |
| | | import com.yuanchu.mom.service.OpinionService; |
| | | import com.yuanchu.mom.utils.JackSonUtil; |
| | | import com.yuanchu.mom.utils.Jwt; |
| | | import com.yuanchu.mom.utils.MyUtil; |
| | | import com.yuanchu.mom.vo.Result; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import com.yuanchu.mom.service.InspectUnacceptedService; |
| | | |
| | |
| | | |
| | | @Autowired |
| | | private Jwt jwt; |
| | | |
| | | @Autowired |
| | | private OpinionService opinionService; |
| | | |
| | | @ApiOperation(value = "ä¸åæ ¼å管çå表", tags = "QMS管ç-->ä¸åæ ¼å管ç") |
| | | @ApiImplicitParams(value = { |
| | |
| | | return Result.success(map); |
| | | } |
| | | |
| | | @ApiOperation(value = "ç¼è¾æè§-->ç¡®å®æé®", tags = "QMS管ç-->ä¸åæ ¼åå¤ç½®") |
| | | @PostMapping("/addOpinion") |
| | | public Result<?> updateOpinion(@RequestHeader("token") String token, @RequestBody Map<String, Object> opinion) throws Exception { |
| | | List<?> opinion1 = JackSonUtil.unmarshal(JackSonUtil.marshal(opinion.get("opinion")), List.class); |
| | | Map<String, String> data = JackSonUtil.unmarshal(jwt.readJWT(token).get("data"), Map.class); |
| | | String id = data.get("id").replaceAll("\"", ""); |
| | | opinionService.updateOpinion(id, opinion1); |
| | | return Result.success("æ·»å æåï¼"); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ¥çç¼è¾æè§", tags = "QMS管ç-->ä¸åæ ¼åå¤ç½®") |
| | | @ApiImplicitParams(value = { |
| | | @ApiImplicitParam(name = "rawUnacceptedId", value = "ä¸åæ ¼åå¤ç½®Id", dataTypeClass = Integer.class, required = true) |
| | | }) |
| | | @GetMapping("/viewEditorial") |
| | | public Result<?> viewEditorialComments(Integer rawUnacceptedId) { |
| | | return Result.success(opinionService.viewEditorialComments(rawUnacceptedId)); |
| | | } |
| | | |
| | | @ApiOperation(value = "å¤±ç¦æ´æ°ç°åæè¿°", tags = "QMS管ç-->ä¸åæ ¼åå¤ç½®") |
| | | @ApiImplicitParams(value = { |
| | | @ApiImplicitParam(name = "rawUnacceptedId", value = "ä¸åæ ¼åå¤ç½®Id", dataTypeClass = Integer.class, required = true), |
| | |
| | | return Result.fail("æ´æ°å¤±è´¥"); |
| | | } |
| | | |
| | | @ApiOperation(value = "ç¹å»ç¼è¾æè§è§¦åæ¥è¯¢", tags = "QMS管ç-->ä¸åæ ¼åå¤ç½®") |
| | | @ApiOperation(value = "ç¼è¾å¤ç½®æè§ç¡®å®æé®", tags = "QMS管ç-->ä¸åæ ¼åå¤ç½®") |
| | | @ApiImplicitParams(value = { |
| | | @ApiImplicitParam(name = "rawUnacceptedId", value = "ä¸åæ ¼åå¤ç½®Id", dataTypeClass = Integer.class, required = true) |
| | | @ApiImplicitParam(name = "rawUnacceptedId", value = "ä¸åæ ¼åå¤ç½®Id", dataTypeClass = Integer.class, required = true), |
| | | @ApiImplicitParam(name = "opinionTell", value = "å¤ç½®æè§", dataTypeClass = String.class, required = true), |
| | | @ApiImplicitParam(name = "way", value = "å¤çæ¹å¼", dataTypeClass = Integer.class, required = true), |
| | | @ApiImplicitParam(name = "type", value = "ä¸åæ ¼ç±»å", dataTypeClass = Integer.class, required = true), |
| | | }) |
| | | @GetMapping("/clickEditing") |
| | | public Result<?> clickEditingTriggerQuery(@RequestParam("rawUnacceptedId") Integer rawUnacceptedId) { |
| | | return Result.success(opinionService.clickEditingTriggerQuery(rawUnacceptedId)); |
| | | @PostMapping("/editDisposalOpinion") |
| | | public Result<?> editDisposalOpinionConfirmation(Integer rawUnacceptedId, String opinionTell, Integer way, Integer type) { |
| | | Integer isUpdateSuccess = inspectUnacceptedService.editDisposalOpinionConfirmation(rawUnacceptedId, opinionTell, way, type); |
| | | if (isUpdateSuccess == 1) { |
| | | return Result.success("ç¼è¾æå"); |
| | | } |
| | | return Result.fail("ç¼è¾å¤±è´¥"); |
| | | } |
| | | } |
| | | |
| | |
| | | |
| | | //æ ¹æ®æ£éªåidæ¥è¯¢æåæ£éªå详æ
|
| | | List<Map<String, Object>> selectFinishInspectsListById(Integer id); |
| | | |
| | | //æ¸
空æ£éªç¶æ |
| | | void updById(Integer rawInspectId); |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.yuanchu.mom.pojo.InspectUnaccepted; |
| | | import com.yuanchu.mom.pojo.vo.RawInspectVo; |
| | | |
| | | import java.util.Map; |
| | | |
| | | /** |
| | |
| | | IPage<Map<String, Object>> selectUnqualifiedRawMaterials(Page<Object> page, String formTime, String productName, String supplier, Integer processingStatus); |
| | | |
| | | IPage<Map<String, Object>> selectDisposal(Page<Object> page, String specificationModel, String productName, Integer productCategories, Integer state); |
| | | |
| | | RawInspectVo editDisposalOpinionConfirmation(Integer rawUnacceptedId); |
| | | } |
| | | |
| | |
| | | |
| | | //å页æ¥è¯¢è¿ç¨æ£éªåå表 |
| | | IPage<Map<String, Object>> selectProcessInspectsList(Page<Object> page, String techfather, Integer result, String name); |
| | | |
| | | //å°æ£éªç¶æä¿®æ¹ä¸ºnull |
| | | void updById(Integer rawInspectId); |
| | | } |
| | | |
| | |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.yuanchu.mom.mybatis_config.MyBaseMapper; |
| | | import com.yuanchu.mom.pojo.RawInsProduct; |
| | | |
| | | import java.util.List; |
| | |
| | | * @author zss |
| | | * @since 2023-08-01 13:52:30 |
| | | */ |
| | | public interface RawInsProductMapper extends BaseMapper<RawInsProduct> { |
| | | public interface RawInsProductMapper extends MyBaseMapper<RawInsProduct> { |
| | | |
| | | |
| | | //æ ¹æ®åæææ£éªåidæ¥è¯¢æ£éªé¡¹ç® |
| | |
| | | |
| | | //æ ¹æ®åæææ£éªåidæ¥ç详æ
|
| | | Map<String, Object> selectRawInspectsListById(Integer id); |
| | | |
| | | //æ¸
空æ£éªç»è®º |
| | | void updById(Integer rawInspectId); |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | |
| | | @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | private Date dealTime; |
| | | |
| | | /** |
| | | * ç°è±¡æè¿° |
| | | **/ |
| | | private String tell; |
| | | |
| | | @ApiModelProperty(value = "å¤çæ¹å¼ 1ï¼è¿å·¥è¿ä¿®ï¼2ï¼è®©æ¥æ¥æ¶ï¼3ï¼æ¥æ¶ï¼4ï¼é级使ç¨ï¼5ï¼æ¥åº;6:éè´§ 7:æ¢è´§") |
| | | private Integer way; |
| | | |
| | | @ApiModelProperty(value = "å¤çæè§") |
| | | private String opinionTell; |
| | | |
| | | @ApiModelProperty(value = "ççµå 1:ççµåï¼å
¶ä»ï¼ç©º") |
| | | private Integer faultyMaterials; |
| | | |
| | | @ApiModelProperty(value = "é»è¾å é¤ æ£å¸¸>=1,å é¤<=0", hidden = true) |
| | | private Integer state; |
| | | |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | |
| | | * å
³è æ£éªåid |
| | | **/ |
| | | private Integer rawInspectId; |
| | | |
| | | |
| | | |
| | | /** |
| | | * ç°è±¡æè¿° |
| | | **/ |
| | | private String tell; |
| | | } |
| | | |
| | |
| | | /* æ£éªé¡¹ç® */ |
| | | @JsonSerialize |
| | | private List<RawInsProductVo> rawInsProducts; |
| | | |
| | | |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.yuanchu.mom.pojo.InspectUnaccepted; |
| | | import com.yuanchu.mom.vo.Result; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.util.Map; |
| | | |
| | |
| | | |
| | | //è¯å®¡ |
| | | Integer rawEvaluate(Integer rawId, Integer passOrNo); |
| | | |
| | | @Transactional(rollbackFor = Exception.class) |
| | | Integer editDisposalOpinionConfirmation(Integer rawUnacceptedId, String opinionTell, Integer way, Integer type); |
| | | } |
| | | |
| | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.yuanchu.mom.pojo.RawInsProduct; |
| | | import com.yuanchu.mom.pojo.vo.RawInsProductVo; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | |
| | | * @param devId |
| | | */ |
| | | void updateDevByRpId(Integer rpId, Integer devId); |
| | | |
| | | void batchAddInsProduct(Integer id, List<RawInsProductVo> rawInsProducts); |
| | | } |
| | | |
| | |
| | | |
| | | /** |
| | | * æ°å¢åæææ£éªå |
| | | * @param userId |
| | | * @param userName |
| | | * @param rawInspectVo |
| | | */ |
| | | String addRawInspects(String userId, RawInspectVo rawInspectVo); |
| | | String addRawInspects(String userName, RawInspectVo rawInspectVo); |
| | | |
| | | /** |
| | | * å页æ¥è¯¢åæææ£éªåå表 |
| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.yuanchu.mom.mapper.InspectUnacceptedMapper; |
| | | import com.yuanchu.mom.mapper.OpinionMapper; |
| | | import com.yuanchu.mom.pojo.InspectUnaccepted; |
| | | import com.yuanchu.mom.pojo.Opinion; |
| | | import com.yuanchu.mom.service.InspectUnacceptedService; |
| | | import com.yuanchu.mom.service.OpinionService; |
| | | import com.yuanchu.mom.vo.Result; |
| | | import com.yuanchu.mom.pojo.RawInspect; |
| | | import com.yuanchu.mom.pojo.vo.RawInspectVo; |
| | | import com.yuanchu.mom.service.*; |
| | | import com.yuanchu.mom.utils.MyUtil; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | |
| | | @Resource |
| | | InspectUnacceptedMapper inspectUnacceptedMapper; |
| | | |
| | | @Resource |
| | | OpinionService opinionService; |
| | | // åæææ£éª |
| | | @Autowired |
| | | private RawInspectService rawInspectService; |
| | | |
| | | // // åæææ£éªåæ°æ® |
| | | @Autowired |
| | | private RawInsProductService rawInsProductService; |
| | | |
| | | // åæåæ£éª |
| | | @Autowired |
| | | private FinishedInspectService finishedInspectService; |
| | | |
| | | // å¨å¶åæ£éª |
| | | @Autowired |
| | | private ProcessInspectService processInspectService; |
| | | |
| | | //æ¥è¯¢æåä¸åæ ¼åæ£éªåå表 |
| | | @Override |
| | |
| | | LambdaUpdateWrapper<InspectUnaccepted> updateWrapper = Wrappers.<InspectUnaccepted>lambdaUpdate() |
| | | .eq(InspectUnaccepted::getId, rawId) |
| | | .set(InspectUnaccepted::getDealReasult, passOrNo); |
| | | //妿æ¯è¯å®¡ä¸éè¿åæ°å¢ä¸åæ ¼å¤çæè§è¡¨ |
| | | if (passOrNo==0) { |
| | | List<Opinion> opinions = new ArrayList<>(); |
| | | for (int i = 0; i <= 3; i++) { |
| | | Opinion opinion = new Opinion(); |
| | | opinion.setType(i); |
| | | opinion.setRawUnacceptedId(rawId); |
| | | opinions.add(opinion); |
| | | return inspectUnacceptedMapper.update(new InspectUnaccepted(), updateWrapper); |
| | | } |
| | | opinionService.saveBatch(opinions); |
| | | |
| | | @Override |
| | | public Integer editDisposalOpinionConfirmation(Integer rawUnacceptedId, String opinionTell, Integer way, Integer type) { |
| | | LambdaUpdateWrapper<InspectUnaccepted> updateWrapper = Wrappers.<InspectUnaccepted>lambdaUpdate() |
| | | .eq(InspectUnaccepted::getId, rawUnacceptedId) |
| | | .set(InspectUnaccepted::getWay, way) |
| | | .set(InspectUnaccepted::getOpinionTell, opinionTell); |
| | | if (way == 1){ |
| | | // çäº0ï¼åææ |
| | | if (type == 0){ |
| | | // æ ¹æ®Idæ¥è¯¢åæææ£éªä¿¡æ¯ä¿¡æ¯ |
| | | RawInspectVo map = inspectUnacceptedMapper.editDisposalOpinionConfirmation(rawUnacceptedId); |
| | | RawInspect rawInspect = new RawInspect(); |
| | | BeanUtils.copyProperties(map, rawInspect); |
| | | // ä¿åç¶çº§ |
| | | rawInspectService.save(rawInspect); |
| | | // æ¹éä¿åå级 |
| | | rawInsProductService.batchAddInsProduct(rawInspect.getId(), map.getRawInsProducts()); |
| | | } |
| | | // çäº1ï¼åæå |
| | | else if (type == 1) { |
| | | // TODO 该æ¥å£åªå©ä½è¿ä¸¤å¤ |
| | | } |
| | | // çäº2ï¼å¨å¶å |
| | | else if (type == 2) { |
| | | // TODO 该æ¥å£åªå©ä½è¿ä¸¤å¤ |
| | | } |
| | | } else if (way == 2 || way == 3 || way == 4){ |
| | | updateWrapper.set(InspectUnaccepted::getFaultyMaterials, 1); |
| | | } |
| | | return inspectUnacceptedMapper.update(new InspectUnaccepted(), updateWrapper); |
| | | } |
| | |
| | | package com.yuanchu.mom.service.impl; |
| | | |
| | | |
| | | import ch.qos.logback.core.joran.util.beans.BeanUtil; |
| | | import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | |
| | | import com.yuanchu.mom.mapper.RawInspectMapper; |
| | | import com.yuanchu.mom.pojo.RawInsProduct; |
| | | import com.yuanchu.mom.pojo.RawInspect; |
| | | import com.yuanchu.mom.pojo.vo.RawInsProductVo; |
| | | import com.yuanchu.mom.service.RawInsProductService; |
| | | import com.yuanchu.mom.utils.MyUtil; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.sql.Wrapper; |
| | | import java.util.Arrays; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | |
| | | rawInsProductMapper.update(new RawInsProduct(), updateWrapper); |
| | | } |
| | | |
| | | @Override |
| | | public void batchAddInsProduct(Integer id, List<RawInsProductVo> rawInsProducts) { |
| | | List<RawInsProduct> rawInsProductList = new ArrayList<>(); |
| | | rawInsProducts.forEach(i -> { |
| | | RawInsProduct rawInsProduct1 = new RawInsProduct(); |
| | | BeanUtils.copyProperties(i, rawInsProduct1); |
| | | rawInsProduct1.setRawInspectId(id); |
| | | rawInsProduct1.setState(1); |
| | | rawInsProductList.add(rawInsProduct1); |
| | | }); |
| | | rawInsProductMapper.insertBatchSomeColumn(rawInsProductList); |
| | | } |
| | | |
| | | /*å¤ææ£æµå¼æ¯å¦æ»¡è¶³æ åå¼åå
æ§å¼çè¦æ±,妿䏿»¡è¶³åæ£éªç»è®ºä¸ºä¸åæ ¼*/ |
| | | //妿æ¯Â±çæä½ |
| | | private int conValues(String standardValueStr, String controlValueStr, String detectionValueStr) { |
| | |
| | | InspectUnaccepted rawUnaccepted = InspectUnaccepted.builder() |
| | | .reason(rawInspectMapper.selectById(id).getName() + "ä¸åæ ¼") //æä¸å®ä¹ä¸ºåææä¸åæ ¼ |
| | | .rawInspectId(id) |
| | | .dealReasult(1) |
| | | .type(0) //ç±»åä¸ºåææ |
| | | .build(); |
| | | inspectUnacceptedMapper.insert(rawUnaccepted); |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.yuanchu.mom.mapper.FinishedInspectMapper"> |
| | | <!--æ¸
空æ£éªç¶æ--> |
| | | <update id="updById"> |
| | | update mom_ocean.finished_inspect |
| | | set result=null |
| | | where id = #{rawInspectId} |
| | | </update> |
| | | <select id="selectFinishedInspectPage" resultType="map"> |
| | | SELECT f.`id`, |
| | | f.`order_number`, |
| | |
| | | <!--ä¸åæ ¼å¤ç½®--> |
| | | <select id="selectDisposal" resultType="map"> |
| | | SELECT i.`id`, s.`type`, s.name productName, s.`specifications`, s.number, i.`tell` description, |
| | | i.`tell` opinions, s.user_name, DATE_FORMAT(i.`create_time`, '%Y-%m-%d') `date`, i.`deal_state` |
| | | i.`tell` opinions, s.user_name, DATE_FORMAT(i.`create_time`, '%Y-%m-%d') `date`, i.`deal_state`, i.way, i.faulty_materials, i.opinion_tell |
| | | FROM mom_ocean.inspect_unaccepted i |
| | | LEFT JOIN |
| | | ( |
| | |
| | | productName != null and productName != ''">AND r.`name` LIKE CONCAT('%', #{productName}, '%') |
| | | </if> |
| | | UNION ALL |
| | | -- æå |
| | | -- åæå |
| | | SELECT 1 AS `type`, f.`project_name` `name`, f.`specifications_model` specifications, f.`quantity` `number`, f.`id`, u.name user_name |
| | | FROM mom_ocean.finished_inspect f, mom_ocean.`user` u |
| | | WHERE f.`state` = 1 |
| | |
| | | AND f.`project_name` LIKE CONCAT('%', #{productName}, '%') |
| | | </if> |
| | | UNION ALL |
| | | -- åæå |
| | | -- å¨å¶å |
| | | SELECT 2 AS `type`, p.`material` `name`, p.`specifications_model` specifications, p.`quantity` `number`, p.`id`, u.name user_name |
| | | FROM mom_ocean.process_inspect p, mom_ocean.`user` u |
| | | WHERE p.state = 1 |
| | |
| | | </if> |
| | | ORDER BY i.`update_time` DESC |
| | | </select> |
| | | |
| | | <resultMap id="editDisposalOpinionConfirmationMap" type="com.yuanchu.mom.pojo.vo.RawInspectVo"> |
| | | <id property="code" column="code"/> |
| | | <result property="unit" column="unit"/> |
| | | <result property="name" column="name"/> |
| | | <result property="specifications" column="specifications"/> |
| | | <result property="formTime" column="form_time"/> |
| | | <result property="number" column="number"/> |
| | | <result property="supplier" column="supplier"/> |
| | | <result property="userName" column="user_name"/> |
| | | <collection property="rawInsProducts" ofType="com.yuanchu.mom.pojo.vo.RawInsProductVo"> |
| | | <result property="name" column="pNmae"/> |
| | | <result property="unit" column="pUnit"/> |
| | | <result property="required" column="required"/> |
| | | <result property="deviceId" column="device_id"/> |
| | | <result property="internal" column="internal"/> |
| | | <result property="testValue" column="test_value"/> |
| | | </collection> |
| | | </resultMap> |
| | | |
| | | <select id="editDisposalOpinionConfirmation" resultMap="editDisposalOpinionConfirmationMap"> |
| | | select r.`form_time`, r.`specifications`, r.`code`, r.`name`, r.`unit`, r.`number`, r.`supplier`, r.`user_name`, p.`name` pNmae, p.`unit` pUnit, |
| | | p.`required`,p.`internal`, p.`test_value`, p.`device_id` |
| | | from (mom_ocean.inspect_unaccepted i, mom_ocean.raw_inspect r) |
| | | left join mom_ocean.raw_ins_product p on r.`id` = p.`raw_inspect_id` |
| | | where i.`id` = #{rawUnacceptedId} |
| | | and i.`raw_inspect_id` = r.`id` |
| | | </select> |
| | | </mapper> |
| | |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
| | | <mapper namespace="com.yuanchu.mom.mapper.ProcessInspectMapper"> |
| | | |
| | | <!--å°æ£éªç¶æä¿®æ¹ä¸ºnull--> |
| | | <update id="updById"> |
| | | update mom_ocean.process_inspect set result=null where id=#{rawInspectId} |
| | | </update> |
| | | <!--æ°å¢è¿ç¨æ£éªå-æ ¹æ®è®¢åå·éæ©äº§åä¿¡æ¯åå·¥èº--> |
| | | <resultMap id="oneMap" type="map"> |
| | | <id property="name" column="material"/> |
| | |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.yuanchu.mom.mapper.RawInspectMapper"> |
| | | <!--æ¸
ç©ºåæææ£éªç»è®º--> |
| | | <update id="updById"> |
| | | update mom_ocean.raw_inspect |
| | | set ins_state=0, |
| | | ins_time=null, |
| | | judge_state=null |
| | | where id = #{rawInspectId} |
| | | </update> |
| | | <select id="selCountRaw" resultType="java.lang.Integer"> |
| | | select count(id) |
| | | from mom_ocean.raw_inspect |